package com.jince.datacenter.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.jince.datacenter.model.DayActivity;
import com.jince.datacenter.service.DayActivityService;

@RestController
@RequestMapping("/dayactivity/")
public class DayActivityController {

	@Autowired
	private DayActivityService dayActivityService;

	@RequestMapping("/list")
	public @ResponseBody List<DayActivity> getAll() {
		return dayActivityService.getAll();
	}

	@RequestMapping("/list2")
	public @ResponseBody List<DayActivity> getAll2() {
		return dayActivityService.getAll2();
	}

}
